
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>


<html>
    <head>
        <title>View universities</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" type="text/css" href="design/style.css">
    </head>
    
    
<body> 
    
    <div id="website">
    
        <div id="header">
            
        </div>
        
        <div id="navbar">
          
<ul>        
 <p><a href="home.jsp">View my activities </a></p>
 <p><a href="viewStudents.jsp">View students </a></p>
 <p><a href="viewUniversities.jsp">View universities </a></p>
 <p><a href="viewCourses.jsp">View courses </a></p>
 <p><a href="viewLearningAgreements.jsp">Learning Agreements </a></p>
 <p><a href="statistics.jsp">Statistics </a></p>
</ul>

    
        </div>
        
        <div id="menue">
              
            <div id="font">
               <span style="font-family:Verdana">  
        <h1>View universities</h1>  
               </span>
           <br>
      <div id="dropdown_viewUniversitiess">
                <select>
                <option value="all">All</option>
                <option value="eu">Europe</option>
                <option value="asia">Asia</option>
                
            <form action="viewUniversities.jsp">
                    <input type="submit" value="Show universities">
                    </form>
                </select>
       
                </div>
        
        
<form action="createUniversity.jsp">
<br>
<br><input type="submit" value="Create University"/></br>
</form>
 <c:import var="uniInfo" url="universityXML_1.xml"/>

<x:parse xml="${uniInfo}" var="output" scope="application" />
     
<table border="1">
    <tr>
        <td>Name</td>
        <td>City</td>
        <td>Country</td>
    </tr>
  <x:forEach var="unis" select="$output/Universities">
      <x:forEach var="continent" select="$unis/Continent">
          <x:forEach var="country" select="$continent/Country">
              <x:forEach var="city" select="$country/City">
                  <x:forEach var="uni" select="$city/University">
    <tr>
        <td>
            <a href="contactUniversity.jsp"> <x:out select="$uni/Name"/>&nbsp; </a>
        </td>
        <td>
           <x:out select="$city/CityName"/>&nbsp; 
        </td>
        <td>
           <x:out select="$country/CountryName"/>&nbsp; 
        </td>
        
    </tr>
                </x:forEach>   
            </x:forEach>   
         </x:forEach>   
      </x:forEach>   
</x:forEach> 
</table>
      



             </div>
            
        </div>
        
        
        
    </div>
 
</body>


</html>
